<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Encore\Admin\Traits\AdminBuilder;

class Notice extends Model
{
	public $timestamps = false;
    protected $fillable = [
        'notice_type','crousesheet_id','test_assign_id', 'event', 'starttime','grace_days','endtime','status','dictation_config_id','tutor_id','squad_id','operatetime'
    ];

    public function attendance_record()
    {
        return $this->hasMany(Attendance_record::class);
    }
    public function test_score_record()
    {
        return $this->hasMany(Test_score_record::class);
    }
    public function jiaxiao_record()
    {
        return $this->hasMany(Jiaxiao_record::class);
    }

    public function dictation_score_record()
    {
        return $this->hasMany(Dictation_score_record::class);
    }

    public function zuoye_record()
    {
        return $this->hasMany(Zuoye_record::class);
    }

    public function study_jindu_record()
    {
        return $this->hasOne(Study_jindu_record::class);
    }
}
